﻿using Newtonsoft.Json.Converters;

namespace MiniFox.Infrastructure
{
    /// <summary>
    /// 
    /// </summary>
    public class DateTimeJsonConverter : IsoDateTimeConverter
    {
        /// <summary>
        /// 
        /// </summary>
        public DateTimeJsonConverter() : this(GlobalStandardFormat.SIMPLE_DATETIME_FORMAT)
        {

        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="format"></param>
        public DateTimeJsonConverter(string format)
        {
            this.DateTimeFormat = format;
        }
    }
}
